<!-- Site header and navigation -->
<div class="top  navbar-fixed-top">
  <div class="container">
    <a href="#" class="navbar-brand pull-left">
      新增检查记录
    </a>
    <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
      <span class="glyphicon glyphicon-align-justify"></span>
    </button>
    <nav class="navbar-collapse collapse" role="navigation">
      <ul class="navbar-nav nav">
        <li><a href="#/main">首页工作提醒</a></li>
        <li><a href="#/yinhuanAll">隐患核查复查</a></li>
      </ul>
      <!--<form class="navbar-form navbar-left" role="search" style="padding-top: 5px">-->
      <!--<div class="form-group">-->
      <!--<input type="text" class="form-control input-sm" placeholder="搜索你感兴趣的事情">-->
      <!--</div>-->
      <!--<button type="submit" class="btn btn-sm">搜索</button>-->
      <!--</form>-->
      <ul class="nav navbar-nav navbar-right">
        <li><a href="#/logout">退出</a></li>
      </ul>
    </nav>
  </div>
</div>

<form name="xcjcForm1">
  <div>
    <div class="panel panel-default">

      <div class="panel-heading">
        <h3 class="panel-title">企业基本信息</h3>
      </div>
      <div class="panel-body">
        <div class="form-group">
          <label>企业名称</label>
          <br/>
          {{entBaseInfo.qymc}}
        </div>

        <div class="form-group">
          <label>法人代表</label>
          <br/>
          {{entBaseInfo.qyfr}}
        </div>
        <div class="form-group">
          <label for="frdbzw">职务

          </label>
          <input id="frdbzw" name="frzw" type="text" class="form-control" placeholder="职务名称" ng-model="xcjcMode.frdbzw" >
        </div>
      </div>

      <div class="panel-heading">
        <h3 class="panel-title">检查记录信息</h3>
      </div>
      <div class="panel-body">
        <div class="form-group">
          <label for="jccs">检查场所
            <span class="glyphicon glyphicon-ok" ng-show="xcjcForm1.jccs.$valid"></span>
            <span class="glyphicon glyphicon-remove" ng-show="!xcjcForm1.jccs.$valid"></span>
          </label>
          <br/>
          <select name="jccs" id="jccs" ng-model="jccs" required>
            <option value="{{jccs.id}}" ng-repeat="jccs in entProAddress">{{jccs.scjydzmc}}</option>
          </select>
        </div>

        <div class="form-group">
          <label for="bjcxcfzr">被检查单位现场负责人

          </label>
          <br/>
          <input id="bjcxcfzr" name="bjcxcfzr" type="text" class="form-control" placeholder="负责人的姓名" ng-model="xcjcMode.bjcxcfzr" >
        </div>

        <div class="form-group">
          <label>检查时间
          </label>
          <br/>
          <select name="dateY" id="dateY" ng-model="dateY" >
            <option value="0"></option>
            <option value="{{nn}}" ng-repeat="nn in yearList">{{nn}}</option>
          </select>年
          <select name="dateM" id="dateM" ng-model="dateM" >
            <option value="0"></option>
            <option value="{{yue}}" ng-repeat="yue in ['01','02','03','04','05','06','07','08','09','10','11','12']">{{yue}}</option>
          </select>月
          <select name="dateD" id="dateD" ng-model="dateD" >
            <option value="0"></option>
            <option value="{{dd}}" ng-repeat="dd in ['01','02','03','04','05','06','07','08','09',10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]">{{dd}}</option>
          </select>日

          至
          <br/>
          <select name="dateY2" id="dateY2" ng-model="dateY2" >
            <option value="0"></option>
            <option value="{{nn}}" ng-repeat="nn in yearList">{{nn}}</option>
          </select>年
          <select name="dateM2" id="dateM2" ng-model="dateM2" >
            <option value="0"></option>
            <option value="{{yue}}" ng-repeat="yue in ['01','02','03','04','05','06','07','08','09','10','11','12']">{{yue}}</option>
          </select>月
          <select name="dateD2" id="dateD2" ng-model="dateD2" >
            <option value="0"></option>
            <option value="{{dd}}" ng-repeat="dd in ['01','02','03','04','05','06','07','08','09',10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]">{{dd}}</option>
          </select>日

        </div>

        <div class="form-group">
          <label for="jclx">检查类型
            <span class="glyphicon glyphicon-ok" ng-show="xcjcForm1.jclx.$valid"></span>
            <span class="glyphicon glyphicon-remove" ng-show="!xcjcForm1.jclx.$valid"></span>
          </label>
          <br/>
          <select name="jclx" id="jclx" ng-model="xcjcMode.jclx" required>
          <option value="{{item.value}}" ng-repeat="item in chekType">{{item.key}}</option>
        </select>
        </div>

        <div class="form-group">
          <label for="cyjcrs">参与检查人数
            <span class="glyphicon glyphicon-ok" ng-show="xcjcForm1.cyjcrs.$valid"></span>
            <span class="glyphicon glyphicon-remove" ng-show="!xcjcForm1.cyjcrs.$valid"></span>
          </label>
          <input id="cyjcrs" name="cyjcrs" type="text" ng-pattern="/^[0-9]*[1-9][0-9]*$/" class="form-control" placeholder="人数" ng-model="xcjcMode.cyjcrs" required>
        </div>

        <!--执法单位-->
        <div class="form-group">
          <label for="zfdw">执法单位
            <span class="glyphicon glyphicon-ok" ng-show="xcjcForm1.zfdw.$valid"></span>
            <span class="glyphicon glyphicon-remove" ng-show="!xcjcForm1.zfdw.$valid"></span>
          </label>
          <div class="input-group">
            <input id="zfdw" name="zfdw" type="text" class="form-control" placeholder="单位名称" ng-disabled="true" ng-model="zfdw" required>
             <span class="input-group-btn">
              <button class="btn btn-default" ng-click="isShowQuery1=!isShowQuery1;">选择</button>
             </span>
          </div>
        </div>
        <div ng-show="isShowQuery1" class="panel-footer">
          <label>选择执法单位</label>

          <div class="input-group">
            <input type="text" class="form-control" ng-model="q1.val" placeholder="按执法单位名称搜索">
          <span class="input-group-btn">
           <button class="btn btn-default" type="button" ng-click="queryEnts1()">搜索</button>
          </span>
          </div>
          <div class="list-group">
            <div class="list-group-item" ng-repeat="item in department" >
              <div class="row">
                <div class=".col-sm-7 col-md-10 col-xs-9">
            <span ng-if="(item.bmmc+'').length > 11">
             <strong>{{ item.bmmc.substring(0,11) }}...</strong>
            </span>
            <span ng-if="(item.bmmc+'').length <= 11">
              <strong>{{ item.bmmc }}</strong>
            </span>
                </div>
                <div class=".col-sm-5 col-md-2 col-xs-3">
                  <button type="button" class="btn btn-sm btn-info" ng-click="toAddDmt1(item.bmid,item.bmmc)">选择
                  </button>
                </div>
              </div>
            </div>
          </div>
          <div class="center"  style="display: none" id="loadAjax1">
            <img src="images/ajax-loader.gif" alt=""/>加载中...
          </div>
          <nav>
            <ul class="pager">
              <li class="previous btn-sm" ng-show="!first"><a ng-click="prePage()">&larr; 上一页</a></li>
              <li class="next btn-sm" ng-show="!last"><a ng-click="nextPage()">下一页 &rarr;</a></li>
            </ul>
          </nav>
        </div>

        <!--参与检查单位-->
        <div class="form-group">
          <label for="cyjcdw">参与检查单位

          </label>
          <div class="input-group">
             <input id="cyjcdw" name="cyjcdw" type="text" class="form-control" placeholder="单位名称"
                 ng-model="cyjcdw" ng-disabled="true">
             <span class="input-group-btn">
             <button class="btn btn-default" ng-click="isShowQuery2=!isShowQuery2;">选择</button>
             </span>
          </div>
        </div>
        <div ng-show="isShowQuery2" class="panel-footer">
          <label>选择参与检查单位</label>

          <div class="input-group">
            <input type="text" class="form-control" ng-model="q2.val" placeholder="按检查单位名称搜索">
      <span class="input-group-btn">
        <button class="btn btn-default" type="button" ng-click="queryEnts2()">搜索</button>
      </span>
          </div>
          <div class="list-group">
            <div class="list-group-item" ng-repeat="item in department" >
              <div class="row">
                <div class=".col-sm-7 col-md-10 col-xs-9">
            <span ng-if="(item.bmmc+'').length > 11">
             <strong>{{ item.bmmc.substring(0,11) }}...</strong>
            </span>
            <span ng-if="(item.bmmc+'').length <= 11">
              <strong>{{ item.bmmc }}</strong>
            </span>
                </div>
                <div class=".col-sm-5 col-md-2 col-xs-3">
                  <button type="button" class="btn btn-sm btn-info" ng-click="toAddDmt2(item.bmcode,item.bmmc)">选择
                  </button>
                </div>
              </div>
            </div>
          </div>
          <div class="center"  style="display: none" id="loadAjax2">
            <img src="images/ajax-loader.gif" alt=""/>加载中...
          </div>
          <nav>
            <ul class="pager">
              <li class="previous btn-sm" ng-show="!first"><a ng-click="prePage()">&larr; 上一页</a></li>
              <li class="next btn-sm" ng-show="!last"><a ng-click="nextPage()">下一页 &rarr;</a></li>
            </ul>
          </nav>
        </div>




        <!--缺勤单位-->
        <div class="form-group">
          <label for="qxdw">缺勤单位

          </label>
          <div class="input-group">
           <input id="qxdw" name="qxdw" type="text" class="form-control" placeholder="单位名称" ng-model="qxdw" ng-disabled="true">
            <span class="input-group-btn">
            <button class="btn btn-default" ng-click="isShowQuery3=!isShowQuery3;">选择</button>
            </span>
          </div>
        </div>
        <div ng-show="isShowQuery3" class="panel-footer">
          <label>选择缺勤单位</label>

          <div class="input-group">
            <input type="text" class="form-control" ng-model="q3.val" placeholder="按缺勤单位名称搜索">
      <span class="input-group-btn">
        <button class="btn btn-default" type="button" ng-click="queryEnts3()">搜索</button>
      </span>
          </div>
          <div class="list-group">
            <div class="list-group-item" ng-repeat="item in department" id="{{item.bmcode}}">
              <div class="row">
                <div class=".col-sm-7 col-md-10 col-xs-9">
            <span ng-if="(item.bmmc+'').length > 11">
             <strong>{{ item.bmmc.substring(0,11) }}...</strong>
            </span>
            <span ng-if="(item.bmmc+'').length <= 11">
              <strong>{{ item.bmmc }}</strong>
            </span>
                </div>
                <div class=".col-sm-5 col-md-2 col-xs-3">
                  <button type="button" class="btn btn-sm btn-info" ng-click="toAddDmt3(item.bmcode,item.bmmc)">选择
                  </button>
                </div>
              </div>
            </div>
          </div>
          <div class="center"  style="display: none" id="loadAjax3">
            <img src="images/ajax-loader.gif" alt=""/>加载中...
          </div>
          <nav>
            <ul class="pager">
              <li class="previous btn-sm" ng-show="!first"><a ng-click="prePage()">&larr; 上一页</a></li>
              <li class="next btn-sm" ng-show="!last"><a ng-click="nextPage()">下一页 &rarr;</a></li>
            </ul>
          </nav>
        </div>


        <div class="form-group">
          <label for="jcqk">检查情况

          </label>
          <textarea class="form-control" name="jcqk" id="jcqk" placeholder="检查情况描述..."
                    ng-model="xcjcMode.jcqk"  ></textarea>
        </div>


        <div class="panel-footer" style="text-align: center" >
          <button class="btn btn-info btn-lg" ng-disabled='!xcjcForm1.$valid' ng-click="shangBaoXCJC()">发送检查记录</button>
        </div>

        <div class="form-group">
          <label for="yinhuantupian">文书上传</label>
          <input type="file" id="yinhuantupian" ng-file-select ng-model="yhfiles"
                 ng-multiple="false" ng-accept="'image/*'">

          <p class="help-block">文书文件</p>
        </div>

      </div>
      <div class="panel-footer" style="text-align: center">
        <button class="btn btn-info btn-lg" ng-disabled='!xcjcForm1.$valid' ng-click="shangBaoWJ()">上传文件</button>
      </div>
    </div>
  </div>
</form>
